package com.test.shiyan4;

public class Yz {
    private  double r;
    private double h;
    private final double PI=3.14;

    public Yz(double r,double h){
        this.r = r;
        this.h = h;
    }
    public double mj(){
        return PI * r* r *2+h*2*PI*r;
    }
    public double tj(){
        return PI* r * r *h;
    }
}
